package org.i1510.wx.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.i1510.wx.po.WxPublic;
import org.i1510.wx.service.ISendMessageService;

public class SendMessageServiceFactory {
	
	private static Map<String,ISendMessageService> map = new HashMap<String,ISendMessageService>();
	
	public static ISendMessageService getSendMessageService(WxPublic wxPublic) {
		String key = wxPublic.getOrgId();//原始ID
		if(map.get(key)==null){
			map.put(key,new RespMessageServiceImpl());
		}
		return map.get(key);
	} 

}
